SYMBOLSLua uses the following symbols
+ - * / // % ^ # == ~= <= >= < > = ( ) { } [ ] :: ; : , . .. ...To these RiscLua adds
=> \ & | ~ ^^ << >>In more detail: + (*) Addition - (*) Subtraction * (*) Multiplication / (*) Division // (*) Integer division % (*) Remainder - the result is non-negative ^ (*) Power # (*) Size of string or list. Truncates doubles to integers. == (*) Equality comparison for strings or integers ~= (*) Unequal <= (*) Less than or equal >= (*) Greater than or equal < (*) Strictly less than, open attribute > (*) Strictly greater than, close attribute = Assignment ( (*) Open parenthesis ) (*) Close parenthesis { Open table constructor } Close table constructor [ (*) Open index ] (*) Close index :: Mark goto label ; Separate statements or table items : Method copula , Separator for lists or table items . Index sugar .. (*) Concatenate strings ... Multiple arguments => Return \ Function & (*) Bitwise AND | (*) Bitwise OR ~ (*) Bitwise NOT ^^ (*) Bitwise XOR << (*) Shift left >> (*) Logical shift right Symbols marked with (*) can have their meaning altered by use of metamethods. The last six operators above have associated event strings:
__band __bor __bnot __bxor __bshl __bshrSee the reference manual for events.